/**
 *
 */
package com.zhuoyue.elmt.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eit.eitsite.common.persistence.Page;
import com.eit.eitsite.common.service.CrudService;
import com.zhuoyue.elmt.entity.MaintenanceStaffDevice;
import com.zhuoyue.elmt.dao.MaintenanceStaffDeviceDao;

/**
 * 维保人员备案设备信息Service
 * @author chenhao
 * @version 2016-09-11
 */
@Service
@Transactional(readOnly = true)
public class MaintenanceStaffDeviceService extends CrudService<MaintenanceStaffDeviceDao, MaintenanceStaffDevice> {

	public MaintenanceStaffDevice get(String id) {
		return super.get(id);
	}
	
	public List<MaintenanceStaffDevice> findList(MaintenanceStaffDevice maintenanceStaffDevice) {
		return super.findList(maintenanceStaffDevice);
	}
	
	public Page<MaintenanceStaffDevice> findPage(Page<MaintenanceStaffDevice> page, MaintenanceStaffDevice maintenanceStaffDevice) {
		return super.findPage(page, maintenanceStaffDevice);
	}
	
	@Transactional(readOnly = false)
	public void save(MaintenanceStaffDevice maintenanceStaffDevice) {
		super.save(maintenanceStaffDevice);
	}
	
	@Transactional(readOnly = false)
	public void delete(MaintenanceStaffDevice maintenanceStaffDevice) {
		super.delete(maintenanceStaffDevice);
	}

	@Transactional(readOnly = false)
	public void insert(MaintenanceStaffDevice maintenanceStaffDevice) {
		dao.insert(maintenanceStaffDevice);
	}

	public List<MaintenanceStaffDevice> getByDeviceCode(String[] deviceCode){
		return dao.getByDeviceCode(deviceCode);
	}

	public MaintenanceStaffDevice findByDeviceCode(String deviceCode){
		return  dao.findByDeviceCode(deviceCode);
	}
}